const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录",
      showLink: false,
      rank: 101
    }
  },
  {
    path: "/comecenter",
    name: "Comecenter",
    component: () => import("@/views/welcome/Comecenter.vue"),
    meta: {
      title: "运营首页",
      showLink: false,
    }
  },
  {
    path: "/employ",
    component: Layout,
    meta: {
      title: "应用中心",
      showLink: false
    },
    children: [
      {
        path: "/employ",
        name: "Employ",
        component: () => import("@/views/welcome/EmployCenter.vue"),
        meta: {
          title: "应用中心",
          showLink: false,
          isTop: true,
          isHideLeftMenu: true
        }
      }
    ]
  },
  {
    path: "/tool",
    component: Layout,
    meta: {
      title: "工具大全",
      showLink: false
    },
    children: [
      {
        path: "/tool",
        name: "Tool",
        component: () => import("@/views/welcome/Tool.vue"),
        meta: {
          title: "工具大全",
          showLink: false,
          isTop: true
        }
      }
    ]
  },
  {
    path: "/user",
    component: Layout,
    meta: {
      title: "个人中心",
      showLink: false
    },
    children: [
      {
        path: "/user",
        name: "UserInfo",
        component: () => import("@/views/userinfo/index.vue"),
        meta: {
          title: "个人中心",
          showLink: false,
          isTop: true,
          isHideLeftMenu: true
        }
      }
    ]
  },
  {
    path: "/redirect",
    component: Layout,
    meta: {
      title: "加载中...",
      showLink: false,
      rank: 102
    },
    children: [
      {
        path: "/redirect/:path(.*)",
        name: "Redirect",
        component: () => import("@/layout/redirect.vue")
      }
    ]
  }
] satisfies Array<RouteConfigsTable>;
